Optimal. Leaf size=73 \[ \frac {a^3 \sin ^3(c+d x)}{3 d}+\frac {3 a^3 \sin ^4(c+d x)}{4 d}+\frac {3 a^3 \sin ^5(c+d x)}{5 d}+\frac {a^3 \sin ^6(c+d x)}{6 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2912, 12, 45}
\begin {gather*} \frac {a^3 \sin ^6(c+d x)}{6 d}+\frac {3 a^3 \sin ^5(c+d x)}{5 d}+\frac {3 a^3 \sin ^4(c+d x)}{4 d}+\frac {a^3 \sin ^3(c+d x)}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 45
Rule 2912
Rubi steps
\begin {align*} \int \cos (c+d x) \sin ^2(c+d x) (a+a \sin (c+d x))^3 \, dx &=\frac {\text {Subst}\left (\int \frac {x^2 (a+x)^3}{a^2} \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac {\text {Subst}\left (\int x^2 (a+x)^3 \, dx,x,a \sin (c+d x)\right )}{a^3 d}\\ &=\frac {\text {Subst}\left (\int \left (a^3 x^2+3 a^2 x^3+3 a x^4+x^5\right ) \, dx,x,a \sin (c+d x)\right )}{a^3 d}\\ &=\frac {a^3 \sin ^3(c+d x)}{3 d}+\frac {3 a^3 \sin ^4(c+d x)}{4 d}+\frac {3 a^3 \sin ^5(c+d x)}{5 d}+\frac {a^3 \sin ^6(c+d x)}{6 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 70, normalized size = 0.96 \begin {gather*} -\frac {a^3 (-45+870 \cos (2 (c+d x))-240 \cos (4 (c+d x))+10 \cos (6 (c+d x))-1200 \sin (c+d x)+520 \sin (3 (c+d x))-72 \sin (5 (c+d x)))}{1920 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 58, normalized size = 0.79
method | result | size |
derivativedivides | \(\frac {\frac {a^{3} \left (\sin ^{6}\left (d x +c \right )\right )}{6}+\frac {3 a^{3} \left (\sin ^{5}\left (d x +c \right )\right )}{5}+\frac {3 a^{3} \left (\sin ^{4}\left (d x +c \right )\right )}{4}+\frac {a^{3} \left (\sin ^{3}\left (d x +c \right )\right )}{3}}{d}\) | \(58\) |
default | \(\frac {\frac {a^{3} \left (\sin ^{6}\left (d x +c \right )\right )}{6}+\frac {3 a^{3} \left (\sin ^{5}\left (d x +c \right )\right )}{5}+\frac {3 a^{3} \left (\sin ^{4}\left (d x +c \right )\right )}{4}+\frac {a^{3} \left (\sin ^{3}\left (d x +c \right )\right )}{3}}{d}\) | \(58\) |
risch | \(\frac {5 a^{3} \sin \left (d x +c \right )}{8 d}-\frac {a^{3} \cos \left (6 d x +6 c \right )}{192 d}+\frac {3 a^{3} \sin \left (5 d x +5 c \right )}{80 d}+\frac {a^{3} \cos \left (4 d x +4 c \right )}{8 d}-\frac {13 a^{3} \sin \left (3 d x +3 c \right )}{48 d}-\frac {29 a^{3} \cos \left (2 d x +2 c \right )}{64 d}\) | \(101\) |
norman | \(\frac {\frac {8 a^{3} \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {136 a^{3} \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 d}+\frac {136 a^{3} \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 d}+\frac {8 a^{3} \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {12 a^{3} \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {12 a^{3} \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {104 a^{3} \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}\) | \(151\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 58, normalized size = 0.79 \begin {gather*} \frac {10 \, a^{3} \sin \left (d x + c\right )^{6} + 36 \, a^{3} \sin \left (d x + c\right )^{5} + 45 \, a^{3} \sin \left (d x + c\right )^{4} + 20 \, a^{3} \sin \left (d x + c\right )^{3}}{60 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 85, normalized size = 1.16 \begin {gather*} -\frac {10 \, a^{3} \cos \left (d x + c\right )^{6} - 75 \, a^{3} \cos \left (d x + c\right )^{4} + 120 \, a^{3} \cos \left (d x + c\right )^{2} - 4 \, {\left (9 \, a^{3} \cos \left (d x + c\right )^{4} - 23 \, a^{3} \cos \left (d x + c\right )^{2} + 14 \, a^{3}\right )} \sin \left (d x + c\right )}{60 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.44, size = 82, normalized size = 1.12 \begin {gather*} \begin {cases} \frac {a^{3} \sin ^{6}{\left (c + d x \right )}}{6 d} + \frac {3 a^{3} \sin ^{5}{\left (c + d x \right )}}{5 d} + \frac {3 a^{3} \sin ^{4}{\left (c + d x \right )}}{4 d} + \frac {a^{3} \sin ^{3}{\left (c + d x \right )}}{3 d} & \text {for}\: d \neq 0 \\x \left (a \sin {\left (c \right )} + a\right )^{3} \sin ^{2}{\left (c \right )} \cos {\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.51, size = 58, normalized size = 0.79 \begin {gather*} \frac {10 \, a^{3} \sin \left (d x + c\right )^{6} + 36 \, a^{3} \sin \left (d x + c\right )^{5} + 45 \, a^{3} \sin \left (d x + c\right )^{4} + 20 \, a^{3} \sin \left (d x + c\right )^{3}}{60 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 57, normalized size = 0.78 \begin {gather*} \frac {\frac {a^3\,{\sin \left (c+d\,x\right )}^6}{6}+\frac {3\,a^3\,{\sin \left (c+d\,x\right )}^5}{5}+\frac {3\,a^3\,{\sin \left (c+d\,x\right )}^4}{4}+\frac {a^3\,{\sin \left (c+d\,x\right )}^3}{3}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________